import VueRouter from "vue-router";
import Home from "../views/home/Home";
import RecommendList from "../views/recommendList/RecommendList";
import Player from "../views/player/Player";

const router = new VueRouter({
  // mode:'history',
  mode: "hash",
  routes: [
    {
      path: "",
      redirect: "/home", //重定向 强制跳转到redirect指向的地址
    },

    {
      name: "home",
      path: "/home",
      component: Home,
    },

    {
      name: "player",
      path: "/player",
      component: Player,
    },

    {
      name: "recommendList",
      path: "/recommendList",
      component: RecommendList,
    },
  ],
});

export default router;
